<div>
  <form class="form-horizontal" role="form"
        data-ng-search-form="">
              <input type="hidden" name="_csrf" value="{{csrf}}"/>
    <div class="onlinesrc-container">
      <div class="form-group">
        <div class="col-sm-10">
          <div class="input-group">
            <span class="input-group-addon"><i
              class="fa fa-search"/></span>
            <input class="form-control"
                   data-ng-change="updateParams();triggerSearch()"
                   type="text"
                   data-ng-model="searchObj.any"
                   data-ng-model-options="modelOptions"
                   placeholder="{{'search' | translate}}" autofocus=""/>
          </div>
        </div>
      </div>
      <div data-gn-search-form-results=""
           data-gn-search-form-results-mode="title"
           data-gn-search-form-results-selection-mode="local simple"
           data-search-results="searchResults"
           data-select-records="selectRecords"
           data-pagination-info="paginationInfo">
      </div>
    </div>
    <div class="">
      <button type="button" class="btn navbar-btn btn-success"
              data-gn-click-and-spin="gnOnlinesrc.linkToMd(mode, selectRecords[0], popupid)"
              data-ng-class="{'disabled': (selectRecords.length < 1)}">
        <i class="fa gn-icon-{{mode}}"/>
        <i class="icon-external-link"></i>
        {{btn.label}}
      </button>
      <div data-gn-need-help="user-guide/associating-resources/linking-records.html"
           class="pull-right"></div>
    </div>
  </form>
</div>
